package com.uex.dev.manage.admin.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangchao
 * @since 2024-02-22
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_device_uhub")
public class DeviceUhubPO extends Model<DeviceUhubPO> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "device_id", type = IdType.AUTO)
    private Integer deviceId;

    private Integer devicePortNum;

    private Integer deviceUkeyNum;

    @TableLogic
    private Byte deleted;

    @Override
    public Serializable pkVal() {
        return this.deviceId;
    }
}
